﻿using System;
using System.Collections.Generic;
using System.Text;
//new
using DataRecv.models.device;
using JRCore.protocol;

namespace DataRecv.models.recever
{
    /// <summary>
    /// 工作包
    /// </summary>
    public class Worker_Bag
    {
        public DeviceView view;
        public DataRecvRecord record;
        public DeviceState state;
        public string ip;
        public int id;
        public string type;
        public string bz;
        public Worker_Bag()
        {
            view = new DeviceView();
            record = new DataRecvRecord();
            state = new DeviceState();
            ip = "";
            id = 0;
            type = "";
            bz = "";
        }

        public string Txt()
        {
            return ("N=" + id.ToString() + " ip=" + ip + " type=" + type + " bz=" + bz);
        }
    }
}
